<%@ page contentType="text/html;charset=UTF-8" language="java" import=" com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/processList.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> ScalarSoft - ChipTrac </TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script language=javascript src="<%=chipTracContext%>/jsp/includes/scripts/validations.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
	function searchProcess()
	{
	    document.processTypeListForm.action = '<%=chipTracContext%>/processList.do?action=SearchProcess';
	    document.processTypeListForm.submit();
	}

	function modify( processTypeId )
	{
	    document.processTypeListForm.action = '<%=chipTracContext%>/processTypeSetup.do?action=modify&processTypeId='+ processTypeId;
	    document.processTypeListForm.submit();
	}

	function del( processTypeId )
	{
	    document.processTypeListForm.action = '<%=chipTracContext%>/processTypeSetup.do?action=delete&processTypeId='+ processTypeId;
	    document.processTypeListForm.submit();
	}

	function view( processTypeId )
	{
	    document.processTypeListForm.action = '<%=chipTracContext%>/processTypeSetup.do?action=view&processTypeId='+ processTypeId;
	    document.processTypeListForm.submit();
	}

    function reset()
	{
		document.processTypeListForm.reset();
	}
</script>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
</HEAD>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TBODY>
	<TR>
		<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
<!-- Side Navigation start -->
	<%@ include file="/jsp/operations/product_menu.jsp" %>
		</TD>
		<!-- end of the side navigations -->
		<TD bgcolor="#ffffff"><IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
		<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
		<TD valign="top" width="100%"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0><BR>

<!-- from here your body starts -->
		<center><span class="NArialW">Process Details</span></center><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>
		<html:form name="processTypeListForm" method="post" action="/processList.do" scope="request" type="com.scalar.chiptrack.operations.processtypesetup.forms.ProcessTypeListForm" focus = "searchProcessName" onsubmit="javascript:searchProcess();" >
		<table border="0" width="90%" align=right>
			<tr><td><chiptrack:info styleClass="NArialL"/></td></tr>
			<tr><td><chiptrack:errors styleClass="NArialL"/></td></tr>
			<tr>
				<td>
					<table border="0" width="100%" align=right>
						<tr>
							<td width="23%"><font class="NArialL">Process Name</font></td>
							<td width="20%"><font class="NArialL" align = "right">
								<!-- <input type="text" name="processName" size="23" maxlength="20" class="txfield"> -->
								<html:text property="searchProcessName" styleClass="txfield"/>
							</td>
						    <td width="7%">&nbsp;</td>
							<td width="15%" align = "right"><font class="NArialL">Process Type</font></td> 
							<td>
								<html:select property="searchProcessType" styleClass="txfield">
									<html:option value="">All</html:option>
									<html:option value="FAB"> FAB </html:option>
									<html:option value="Wafer Store"> WAFER STORE </html:option>
									<html:option value="SORT"> SORT </html:option>
									<html:option value="Bumping"> BUMPING </html:option>
									<html:option value="Die Bank"> DIE BANK </html:option>
									<html:option value="Assembly"> ASSEMBLY </html:option>
									<html:option value="TEST"> TEST </html:option>
									<html:option value="Class Store"> CLASS STORE </html:option>
									<html:option value="Mark & Pack"> MARK & PACK </html:option>
									<html:option value="Finished Goods"> FINISHED GOODS </html:option>
								</html:select>
							</td> 
						</tr>
						<tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
						<tr>
							<td colspan=5 align = center>
								<html:link href="javascript:searchProcess();">
								<img border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17" onmouseover="window.status='Click to Search for Process List';return true" onmouseout="window.status='';return true" title="Click here to Search for Process List">
								</html:link>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="javascript:document.processTypeListForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17" onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr><td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
			<tr>
				<td>
					<table border="0" width="100%" bordercolor="#FFFFFF" align=right>
						<tr>
							<td class="NArialL" colspan=4>To add a new process name, please 
								<html:link page="/processTypeSetup.do?action=new" onmouseover="window.status='Click to Add New Process Name';return true" onmouseout="window.status='';return true" >click here</html:link>
							</td>
                            <td colspan=1>&nbsp;</td>
                        </tr>
						<tr><td class="NArialL" colspan=5><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td>
						</tr>
						<logic:present name="processList" scope="request">
						<tr>
                            <td width="5%" align="center" bgcolor="#993333" class="NArialL">
								<font color="#FFFFFF">Process Seq#</font>
							</td>
                            <td width="15%" align="center" bgcolor="#993333" class="NArialL">
								<font color="#FFFFFF">Process Name</font>
							</td>
							<td width="17%" align="center" bgcolor="#993333" class="NArialL">
								<font color="#FFFFFF">Base Process Name</font>
							</td>
							<td width="17%" align="center" bgcolor="#993333" class="NArialL">
								<font color="#FFFFFF">Actions</font>
							</td>
							<td width="10%" align="center">&nbsp;</td>
						</tr>
						
						<logic:iterate id="Process" name="processList" indexId="iteratorIdx" type="com.scalar.chiptrack.operations.processtypesetup.ProcessSetup">
						<tr <%if(iteratorIdx.intValue()%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%> >
                            <td width="5%" align="center" class="NArialL">
								<bean:write name="Process" property="processOrderNo"/>
							</td>
                            <td width="15%" align="center" class="NArialL">
								<bean:write name="Process" property="process"/>
							</td>
							<td width="17%" align="center" class="NArialL">
								<bean:write name="Process" property="baseProcess" />
							</td>
							<td width="17%" align="center" class="NArialL">
							<a href="javascript:modify(<bean:write name="Process" property="processTypeId"/>);" onmouseover="window.status='Click to Modify Process Details';return true" onmouseout="window.status='';return true">Modify</a>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:del(<bean:write name="Process" property= "processTypeId" />);"> Delete</a> 
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:view(<bean:write name="Process" property="processTypeId"/>);" onmouseover="window.status='Click to View Process Details';return true" onmouseout="window.status='';return true" >View</a>
							</td>
						</tr>
						</logic:iterate>
						</logic:present>
					</table>
				</td>
			</tr>
		</table>
<!-- till here -->
<BR><BR><BR>
		</TD>
		<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
</TABLE>

<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->
</html:form>
</BODY>
</HTML>
